import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import BigScreen from '../views/BigScreen/big-index.vue'
const router = createRouter({
  // 指定当前的路由模式为history路由
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      redirect:'/big-screen'
    },
    {
      path: '/big-screen',
      name: 'big-screen',
      component: BigScreen,
    },
  ],
})

export default router
